﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc_ChiPhi_NhapHang_TraCuu.ascx.cs"
    Inherits="Cost_UserControl_uc_ChiPhi_NhapHang_TraCuu" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css" media="print">
    .jwts_tabbernav
    {
        display: none;
    }
</style>
<script type="text/javascript">    var jwts_slideSpeed = 30; var jwts_timer = 10;</script>
<script type="text/javascript">
    $(function () {
        var objTuNgay = document.getElementById("<%=txtTuNgay.ClientID %>");
        var objDenNgay = document.getElementById("<%=txtDenNgay.ClientID %>");
        $(objTuNgay).datepicker({
            showOn: "button",
            buttonImage: "../images/calendar.gif",
            buttonImageOnly: true
        }),

             $(objDenNgay).datepicker({
                 showOn: "button",
                 buttonImage: "../images/calendar.gif",
                 buttonImageOnly: true
             });
    });
</script>
<div style="height: 850px">
    <div class="TitlePage">
        TRA CỨU INVOICE</div>
    <asp:Panel runat="server" ID="Panel1">
        <div style="text-align: left; width: 100%">
            <fieldset>
                <table width="100%">
                    <tr>
                        <td class="tdsearch1">
                        </td>
                        <td align="left" class="tdsearch2">
                            Từ ngày <span style="color: Red">(*)</span>:
                        </td>
                        <td align="left" class="tdsearch3">
                            <asp:TextBox runat="server" ID="txtTuNgay" MaxLength="50" CssClass="txtBoxDate" Width="90%"></asp:TextBox>
                        </td>
                        <td class="tdsearch4">
                        </td>
                        <td align="left" class="tdsearch5">
                            Đến ngày <span style="color: Red">(*)</span>:
                        </td>
                        <td align="left" class="tdsearch6" style="margin-right: 5px">
                            <asp:TextBox runat="server" ID="txtDenNgay" MaxLength="50" CssClass="txtBoxDate"
                                Width="90%"></asp:TextBox>
                        </td>
                        <td class="tdsearch7">
                        </td>
                    </tr>
                    <tr>
                        <td class="tdsearch1">
                        </td>
                        <td align="left" class="tdsearch2">
                            Số vận đơn <span style="color: Red">(*)</span>:
                        </td>
                        <td align="left" class="tdsearch3">
                            <asp:TextBox runat="server" ID="txtSoVanDon" MaxLength="50" CssClass="txtBox" Width="100%"></asp:TextBox>
                        </td>
                        <td class="tdsearch4">
                        </td>
                        <td align="left" class="tdsearch5">
                        </td>
                        <td align="left" class="tdsearch6" style="margin-right: 5px">
                        </td>
                        <td class="tdsearch7">
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="7">
                            <asp:Label ID="lblAlerting" runat="server" CssClass="Alerting"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="7">
                            <asp:Button CssClass="btn_admin" ID="btnSearch" runat="server" Text="Tìm kiếm" OnClick="btnSearch_Click" />
                            &nbsp;&nbsp;
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
    </asp:Panel>
    <div style="clear: both; height: 10px">
    </div>
    <div>
        <div id="divSearchList1">
            <asp:GridView ID="grdList" runat="server" AllowPaging="True" DataKeyNames="ID" AutoGenerateColumns="false"
                CssClass="grid" Width="100%" PageSize="20" OnPageIndexChanging="grdList_PageIndexChanging"
                OnRowCommand="grdList_RowCommand">
                <Columns>
                    <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="200px">
                        <ItemTemplate>
                            <asp:LinkButton ID="btnListingView" runat="server" Text="Xuất báo cáo" CommandName="View"
                                CommandArgument='<%# Eval("ID") %>' Font-Underline="false" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="200px">
                        <ItemTemplate>
                            <asp:LinkButton ID="btnListingEdit" runat="server" Text="Cập nhật" CommandName="Edit"
                                CommandArgument='<%# Eval("ID") %>' Font-Underline="false" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Số vận đơn" ItemStyle-HorizontalAlign="LEFT">
                        <ItemTemplate>
                            <asp:Label ID="lblListingSoVanDon" runat="server" Text='<%# Eval("SOVANDON") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày tạo" ItemStyle-HorizontalAlign="Center " ItemStyle-Width="150px">
                        <ItemTemplate>
                            <asp:Label ID="lblListingNgayTao" runat="server" Text='<%# String.Format("{0:dd/MM/yyyy HH:mm:ss}",Eval("createdate")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>                    
                </Columns>
                <PagerStyle CssClass="pager" HorizontalAlign="Right" />
            </asp:GridView>
        </div>
    </div>
</div>
<asp:HiddenField ID="hdfTuNgay" runat="server" />
<asp:HiddenField ID="hdfDenNgay" runat="server" />
